/* eslint-disable */
// @ts-ignore
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as API from './types';

/** 获取活动详情 GET /tourism/client/c/index/getactiviteinfo */
export async function getActiviteInfoUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getActiviteInfoUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultBizActivitie_>(
    '/tourism/client/c/index/getactiviteinfo',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 获取配置 GET /tourism/client/c/index/getconfig */
export async function getConfigUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getConfigUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultString_>('/tourism/client/c/index/getconfig', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取遗产 GET /tourism/client/c/index/getheritage */
export async function pageUsingGet1({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.pageUsingGET1Params;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultPageBizHeritage_>(
    '/tourism/client/c/index/getheritage',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 获取遗产详情 GET /tourism/client/c/index/getheritagedetail */
export async function detailUsingGet2({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.detailUsingGET2Params;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultBizHeritage_>(
    '/tourism/client/c/index/getheritagedetail',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 获取用户最新计划 GET /tourism/client/c/index/getnewplan */
export async function getNewPlanUsingGet({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultNewplan_>(
    '/tourism/client/c/index/getnewplan',
    {
      method: 'GET',
      ...(options || {}),
    }
  );
}

/** 获取推荐 GET /tourism/client/c/index/getrecommend */
export async function getRecommendUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getRecommendUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultListBizRecommend_>(
    '/tourism/client/c/index/getrecommend',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 获取景点热门 GET /tourism/client/c/index/getredspot */
export async function getRedSpotUsingGet({
  params,
  options,
}: {
  params:any;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultListSpot_>(
    '/tourism/client/c/index/getredspot',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 获取攻略热门 GET /tourism/client/c/index/getredstrategy */
export async function getRedStrategyUsingGet({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultListStrategy_>(
    '/tourism/client/c/index/getredstrategy',
    {
      method: 'GET',
      ...(options || {}),
    }
  );
}

/** 获取景点活动 GET /tourism/client/c/index/getspotactivite */
export async function getSpotActiviteUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getSpotActiviteUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultListWxIndexSpotActivite_>(
    '/tourism/client/c/index/getspotactivite',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 获取景点预约 GET /tourism/client/c/index/getspotbook */
export async function spotBookUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.spotBookUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultListSpot_>(
    '/tourism/client/c/index/getspotbook',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 获取用户计划 GET /tourism/client/c/index/getuserplan */
export async function getUserPlanUsingGet({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultListPlan_>(
    '/tourism/client/c/index/getuserplan',
    {
      method: 'GET',
      ...(options || {}),
    }
  );
}
